
{extend name='main'}



{block name="content"}
<div class="layui-card padding-20 shadow layui-card-body" >
    {include file='exchange_order/index_search'}
    <table class="layui-table margin-top-10" >
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-center nowrap'>序号</th>
            <th class='text-center nowrap'>订单号</th>
            <th class='text-center nowrap'>商品名称</th>
            <th class='text-center nowrap'>用户名称</th>
            <th class='text-center nowrap'>兑换积分</th>
            <th class='text-center nowrap'>兑换时间</th>
            <th class='text-center nowrap'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key => $vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-center'>{$page['current']*$page['limit']-$page['limit']+$key+1}</td>
            <td class="text-center">{$vo.order_no|default='-'}</td>
            <td class="text-center">{$vo.goods_name|default='-'}</td>
            <td class="text-center">
               {$vo.customer_name}
            </td>
            <td class="text-center">
                {$vo.amount}
            </td>
            <td class="text-center">
                {$vo.create_at}
            </td>
            <td class="text-center">
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="{:lang('确定要删除吗？')}" data-action="{:url('remove')}" data-value="id#{$vo.id}">{:lang('删 除')}</a>
            </td>

        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>
{/block}
